﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyModels.ViewModels
{
    public class PermissionDto
    {
        public long  Id { get; set; }
        public long? Mid { get; set; } = 0;
        public long? Pid { get; set; }=0;
        public string Name { get; set; }
        public string Description { get; set; }
        public string Code { get; set; }
        public bool Enabled { get; set; }
        public int OrderSort { get; set; }
        /// <summary>
        /// 是否是按钮
        /// </summary>
        public bool IsButton { get; set; } = false;

        /// <summary>
        /// 是否隐藏菜单
        /// </summary>
        public bool? IsHide { get; set; } = false;

        /// <summary>
        /// 是否 KeepAlive
        /// </summary>
        public bool? IsKeepAlive { get; set; } = false;

        /// <summary>
        /// 按钮事件
        /// </summary>
        public string? Func { get; set; }

        public List<long>? PidArr { get; set; }

        public long? CreateId { get; set; }
        public string? CreateBy { get; set; }
    }
}
